import { axios } from "@/request/request";

/**
 * 发布视频评论
 * @method getUserStatus
 * @param {username} 当前登录的用户名
 * @param {index} 点赞的评论的id
 */
export const addVideoComment = (params) => {
    return axios({
      url: "/addVideoComment",
      method: "post",
      data: params,
    });
  };

//获取视频评论
export const getVideoComment = (params) => {
    return axios({
      url: "/getVideoComment",
      method: "post",
      data: params,
    });
  }; 

/* 论坛页面的评论API */
//添加评论
export const addPostComment = (params) => {
    return axios({
      url: "/addComment",
      method: "post",
      data: params,
    });
  };

//获取评论
export const getPostComment = (params) => {
    return axios({
        url: "/getComment",
        method: "post",
        data: params,
    });
};



